﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace TestAngular.Migrations
{
    public partial class Asns_Asn_OrderType_Update : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropForeignKey(
                name: "FK_BasicArchivesAsn_BasicArchivesPurchaseOrderType_OrderTypeId",
                table: "BasicArchivesAsn");

            migrationBuilder.AddForeignKey(
                name: "FK_BasicArchivesAsn_BasicArchivesAsnType_OrderTypeId",
                table: "BasicArchivesAsn",
                column: "OrderTypeId",
                principalTable: "BasicArchivesAsnType",
                principalColumn: "Id",
                onDelete: ReferentialAction.Restrict);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropForeignKey(
                name: "FK_BasicArchivesAsn_BasicArchivesAsnType_OrderTypeId",
                table: "BasicArchivesAsn");

            migrationBuilder.AddForeignKey(
                name: "FK_BasicArchivesAsn_BasicArchivesPurchaseOrderType_OrderTypeId",
                table: "BasicArchivesAsn",
                column: "OrderTypeId",
                principalTable: "BasicArchivesPurchaseOrderType",
                principalColumn: "Id",
                onDelete: ReferentialAction.Restrict);
        }
    }
}
